﻿<?php
defined('_JEXEC') or die('Restricted access');
?>

<form action="index.php" method="post" name="adminForm">
<div id="editcell">
    <table class="adminlist">
    <thead>
        <tr>
            
            <th>
                <?php echo JText::_( 'Kalenterinryhmän nimi' ); ?>
            </th>
			<th width="5">
                <?php echo JText::_( 'ID' ); ?>
            </th>
        </tr>            
    </thead>
    <?php
    $k = 0;
    for ($i=0, $n=count( $this->items ); $i < $n; $i++)
    {
				$row =& $this->items[$i];
				$checked    = JHTML::_( 'grid.id', $i, $row->id );
				$link = JRoute::_( 'index.php?option=com_eventcalendar&task=manageGroup&id='. $row->id );
				?>
				
        <tr class="<?php echo "row$k"; ?>">
            <td>
			
              <?php echo $checked; ?>
	
			</td>
            <td>
				<td>
                <a href="<?php echo $link; ?>"><?php echo $row->nimi; ?></a>
				</td>
  
            </td>
			
			 <td>
                <?php echo $row->id; ?>
            </td>
        </tr>
        <?php
        $k = 1 - $k;
    }
    ?>
    </table>
</div>
 
<input type="hidden" name="option" value="com_eventcalendar" />
<input type="hidden" name="task" value="manageGroup" />

<input type="hidden" name="controller" value="eventcalendar" />
 
</form>